/**
 * Copyright (c) 2014-2015 ENZO 熊强强  (xqenzo@163.com).
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 	
 */

package cn.edu.xyc.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/** 
 * <p>Title: User.java</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2015</p>
 * @author ENZO E-mail:xqenzo@163.com
 * @date 创建时间：2015年10月17日 上午11:20:07
 * @version 1.0 
 */
@Entity
@Table(name = "xy_user")
public class User {
    private String id;
    private String username;
    
    private String password;
    public User(){
	super();
    }
    

    public User(String username, String password) {
	super();
	this.username = username;
	this.password = password;
    }

    @Id
    @Column(name="userid",length=255)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name="username",length=50,unique=true,nullable=true)
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Column(name="password" ,length=255,unique=true,nullable=true)
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    
}
